package com.jojo.bubble.service.impl;

import com.jojo.bubble.entity.Gear;
import com.jojo.bubble.dao.GearDao;
import com.jojo.bubble.service.GearService;
import org.springframework.stereotype.Service;

import java.util.List;

import javax.annotation.Resource;

/**
 * 档位表(Gear)表服务实现类
 *
 * @author jojo
 * @since 2023-08-08 12:13:07
 */
@Service("gearService")
public class GearServiceImpl implements GearService {
    @Resource
    private GearDao gearDao;

    @Override
    public int count(Gear record) {
        return this.gearDao.count(record);
    }

    @Override
    public int insert(Gear record) {
        return this.gearDao.insert(record);
    }

    @Override
    public int update(Gear record) {
        return this.gearDao.update(record);
    }

    @Override
    public Gear getInfo(int id) {
        return this.gearDao.queryById(id);
    }

    @Override
    public List<Gear> getList(Gear record) {
        return this.gearDao.getList(record);
    }

    @Override
    public int delete(int id) {
        return this.gearDao.delete(id);
    }
}
